<?php
/**
 * Created by PhpStorm.
 * User: t
 * Date: 2024/6/8
 * Time: 10:16
 * * @copyright: ©2024 永州微聚商网络科技有限公司
 * @link: https://www.weijuyunke.com
 */

namespace app\common\model;

use think\Model;
class Config extends Model
{
    protected $name = "config";
    public static function getConfigValue($name){
        $data=  self::where('key','=',$name)->value('value');
        if(is_null(json_decode($data))){
            return $data;
        }else{
            return  json_decode($data,true);
        }
    }

}
